package com.kmproject.haifu.mvp.model.entity.beans;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * 求租详情
 */
public class RentSeekingDetail implements Parcelable {

    /**
     * accommodationStation : 0
     * avatar :
     * collectionCount : 0
     * createTime :
     * createTimeCount :
     * detailDesc :
     * drawingCount : 0
     * drawingCountName :
     * estimateRentingTime : 0
     * estimateRentingUnit :
     * estimateRentingUnitName :
     * existCollection : true
     * headImage :
     * highestAcreage : 0
     * highestRentBudget : 0
     * houseRentDetailList : [{"baseDictId":"","baseDictName":"","category":"","detailId":0,"houseId":0,"icon":"","isAvailable":0}]
     * isDelete : 0
     * isRecommend : 0
     * landlord :
     * landlordGender :
     * landlordMobile :
     * lat :
     * latestTime :
     * levelName :
     * lgt :
     * loginTimeCount :
     * lowestAcreage : 0
     * lowestRentBudget : 0
     * nickName :
     * parentSeekingArea : 0
     * parentSeekingAreaName :
     * positionDescription :
     * recommendOrder : 0
     * rentTime :
     * roomCount : 0
     * roomCountName :
     * seekingArea : 0
     * seekingAreaName :
     * seekingId : 0
     * seekingType :
     * seekingTypeName :
     * tenancy :
     * tenancyName :
     * toiletCount : 0
     * toiletCountName :
     * updateTime :
     * userId : 0
     * userSex :
     * viewCount : 0
     * wechatNumber :
     */

    private long accommodationStation;
    private String avatar;
    private int collectionCount;
    private String createTime;
    private String createTimeCount;
    private String detailDesc;
    private long drawingCount;
    private String drawingCountName;
    private long estimateRentingTime;
    private String estimateRentingUnit;
    private String estimateRentingUnitName;
    private boolean existCollection;
    private String headImage;
    private long highestAcreage;
    private long highestRentBudget;
    private int isDelete;
    private int isRecommend;
    private String landlord;
    private String landlordGender;
    private String landlordMobile;
    private String lat;
    private String latestTime;
    private String levelName;
    private String lgt;
    private String loginTimeCount;
    private long lowestAcreage;
    private long lowestRentBudget;
    private String nickName;
    private long parentSeekingArea;
    private String parentSeekingAreaName;
    private String positionDescription;
    private long recommendOrder;
    private String rentTime;
    private long roomCount;
    private String roomCountName;
    private long seekingArea;
    private String seekingAreaName;
    private long seekingId;
    private String seekingType;
    private String seekingTypeName;
    private String tenancy;
    private String tenancyName;
    private long toiletCount;
    private String toiletCountName;
    private String updateTime;
    private long userId;
    private String userSex;
    private int viewCount;
    private String wechatNumber;
    private boolean isSelected;
    private List<HouseRentDetailListBean> houseRentDetailList;


    protected RentSeekingDetail(Parcel in) {
        accommodationStation = in.readLong();
        avatar = in.readString();
        collectionCount = in.readInt();
        createTime = in.readString();
        createTimeCount = in.readString();
        detailDesc = in.readString();
        drawingCount = in.readLong();
        drawingCountName = in.readString();
        estimateRentingTime = in.readLong();
        estimateRentingUnit = in.readString();
        estimateRentingUnitName = in.readString();
        existCollection = in.readByte() != 0;
        headImage = in.readString();
        highestAcreage = in.readLong();
        highestRentBudget = in.readLong();
        isDelete = in.readInt();
        isRecommend = in.readInt();
        landlord = in.readString();
        landlordGender = in.readString();
        landlordMobile = in.readString();
        lat = in.readString();
        latestTime = in.readString();
        levelName = in.readString();
        lgt = in.readString();
        loginTimeCount = in.readString();
        lowestAcreage = in.readLong();
        lowestRentBudget = in.readLong();
        nickName = in.readString();
        parentSeekingArea = in.readLong();
        parentSeekingAreaName = in.readString();
        positionDescription = in.readString();
        recommendOrder = in.readLong();
        rentTime = in.readString();
        roomCount = in.readLong();
        roomCountName = in.readString();
        seekingArea = in.readLong();
        seekingAreaName = in.readString();
        seekingId = in.readLong();
        seekingType = in.readString();
        seekingTypeName = in.readString();
        tenancy = in.readString();
        tenancyName = in.readString();
        toiletCount = in.readLong();
        toiletCountName = in.readString();
        updateTime = in.readString();
        userId = in.readLong();
        userSex = in.readString();
        viewCount = in.readInt();
        wechatNumber = in.readString();
        isSelected = in.readByte() != 0;
        houseRentDetailList = in.createTypedArrayList(HouseRentDetailListBean.CREATOR);
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(accommodationStation);
        dest.writeString(avatar);
        dest.writeInt(collectionCount);
        dest.writeString(createTime);
        dest.writeString(createTimeCount);
        dest.writeString(detailDesc);
        dest.writeLong(drawingCount);
        dest.writeString(drawingCountName);
        dest.writeLong(estimateRentingTime);
        dest.writeString(estimateRentingUnit);
        dest.writeString(estimateRentingUnitName);
        dest.writeByte((byte) (existCollection ? 1 : 0));
        dest.writeString(headImage);
        dest.writeLong(highestAcreage);
        dest.writeLong(highestRentBudget);
        dest.writeInt(isDelete);
        dest.writeInt(isRecommend);
        dest.writeString(landlord);
        dest.writeString(landlordGender);
        dest.writeString(landlordMobile);
        dest.writeString(lat);
        dest.writeString(latestTime);
        dest.writeString(levelName);
        dest.writeString(lgt);
        dest.writeString(loginTimeCount);
        dest.writeLong(lowestAcreage);
        dest.writeLong(lowestRentBudget);
        dest.writeString(nickName);
        dest.writeLong(parentSeekingArea);
        dest.writeString(parentSeekingAreaName);
        dest.writeString(positionDescription);
        dest.writeLong(recommendOrder);
        dest.writeString(rentTime);
        dest.writeLong(roomCount);
        dest.writeString(roomCountName);
        dest.writeLong(seekingArea);
        dest.writeString(seekingAreaName);
        dest.writeLong(seekingId);
        dest.writeString(seekingType);
        dest.writeString(seekingTypeName);
        dest.writeString(tenancy);
        dest.writeString(tenancyName);
        dest.writeLong(toiletCount);
        dest.writeString(toiletCountName);
        dest.writeString(updateTime);
        dest.writeLong(userId);
        dest.writeString(userSex);
        dest.writeInt(viewCount);
        dest.writeString(wechatNumber);
        dest.writeByte((byte) (isSelected ? 1 : 0));
        dest.writeTypedList(houseRentDetailList);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<RentSeekingDetail> CREATOR = new Creator<RentSeekingDetail>() {
        @Override
        public RentSeekingDetail createFromParcel(Parcel in) {
            return new RentSeekingDetail(in);
        }

        @Override
        public RentSeekingDetail[] newArray(int size) {
            return new RentSeekingDetail[size];
        }
    };

    public long getAccommodationStation() {
        return accommodationStation;
    }

    public void setAccommodationStation(long accommodationStation) {
        this.accommodationStation = accommodationStation;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public int getCollectionCount() {
        return collectionCount;
    }

    public void setCollectionCount(int collectionCount) {
        this.collectionCount = collectionCount;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCreateTimeCount() {
        return createTimeCount;
    }

    public void setCreateTimeCount(String createTimeCount) {
        this.createTimeCount = createTimeCount;
    }

    public String getDetailDesc() {
        return detailDesc;
    }

    public void setDetailDesc(String detailDesc) {
        this.detailDesc = detailDesc;
    }

    public long getDrawingCount() {
        return drawingCount;
    }

    public void setDrawingCount(long drawingCount) {
        this.drawingCount = drawingCount;
    }

    public String getDrawingCountName() {
        return drawingCountName;
    }

    public void setDrawingCountName(String drawingCountName) {
        this.drawingCountName = drawingCountName;
    }

    public long getEstimateRentingTime() {
        return estimateRentingTime;
    }

    public void setEstimateRentingTime(long estimateRentingTime) {
        this.estimateRentingTime = estimateRentingTime;
    }

    public String getEstimateRentingUnit() {
        return estimateRentingUnit;
    }

    public void setEstimateRentingUnit(String estimateRentingUnit) {
        this.estimateRentingUnit = estimateRentingUnit;
    }

    public String getEstimateRentingUnitName() {
        return estimateRentingUnitName;
    }

    public void setEstimateRentingUnitName(String estimateRentingUnitName) {
        this.estimateRentingUnitName = estimateRentingUnitName;
    }

    public boolean isExistCollection() {
        return existCollection;
    }

    public void setExistCollection(boolean existCollection) {
        this.existCollection = existCollection;
    }

    public String getHeadImage() {
        return headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public long getHighestAcreage() {
        return highestAcreage;
    }

    public void setHighestAcreage(long highestAcreage) {
        this.highestAcreage = highestAcreage;
    }

    public long getHighestRentBudget() {
        return highestRentBudget;
    }

    public void setHighestRentBudget(long highestRentBudget) {
        this.highestRentBudget = highestRentBudget;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    public int getIsRecommend() {
        return isRecommend;
    }

    public void setIsRecommend(int isRecommend) {
        this.isRecommend = isRecommend;
    }

    public String getLandlord() {
        return landlord;
    }

    public void setLandlord(String landlord) {
        this.landlord = landlord;
    }

    public String getLandlordGender() {
        return landlordGender;
    }

    public void setLandlordGender(String landlordGender) {
        this.landlordGender = landlordGender;
    }

    public String getLandlordMobile() {
        return landlordMobile;
    }

    public void setLandlordMobile(String landlordMobile) {
        this.landlordMobile = landlordMobile;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getLatestTime() {
        return latestTime;
    }

    public void setLatestTime(String latestTime) {
        this.latestTime = latestTime;
    }

    public String getLevelName() {
        return levelName;
    }

    public void setLevelName(String levelName) {
        this.levelName = levelName;
    }

    public String getLgt() {
        return lgt;
    }

    public void setLgt(String lgt) {
        this.lgt = lgt;
    }

    public String getLoginTimeCount() {
        return loginTimeCount;
    }

    public void setLoginTimeCount(String loginTimeCount) {
        this.loginTimeCount = loginTimeCount;
    }

    public long getLowestAcreage() {
        return lowestAcreage;
    }

    public void setLowestAcreage(long lowestAcreage) {
        this.lowestAcreage = lowestAcreage;
    }

    public long getLowestRentBudget() {
        return lowestRentBudget;
    }

    public void setLowestRentBudget(long lowestRentBudget) {
        this.lowestRentBudget = lowestRentBudget;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public long getParentSeekingArea() {
        return parentSeekingArea;
    }

    public void setParentSeekingArea(long parentSeekingArea) {
        this.parentSeekingArea = parentSeekingArea;
    }

    public String getParentSeekingAreaName() {
        return parentSeekingAreaName;
    }

    public void setParentSeekingAreaName(String parentSeekingAreaName) {
        this.parentSeekingAreaName = parentSeekingAreaName;
    }

    public String getPositionDescription() {
        return positionDescription;
    }

    public void setPositionDescription(String positionDescription) {
        this.positionDescription = positionDescription;
    }

    public long getRecommendOrder() {
        return recommendOrder;
    }

    public void setRecommendOrder(long recommendOrder) {
        this.recommendOrder = recommendOrder;
    }

    public String getRentTime() {
        return rentTime;
    }

    public void setRentTime(String rentTime) {
        this.rentTime = rentTime;
    }

    public long getRoomCount() {
        return roomCount;
    }

    public void setRoomCount(long roomCount) {
        this.roomCount = roomCount;
    }

    public String getRoomCountName() {
        return roomCountName;
    }

    public void setRoomCountName(String roomCountName) {
        this.roomCountName = roomCountName;
    }

    public long getSeekingArea() {
        return seekingArea;
    }

    public void setSeekingArea(long seekingArea) {
        this.seekingArea = seekingArea;
    }

    public String getSeekingAreaName() {
        return seekingAreaName;
    }

    public void setSeekingAreaName(String seekingAreaName) {
        this.seekingAreaName = seekingAreaName;
    }

    public long getSeekingId() {
        return seekingId;
    }

    public void setSeekingId(long seekingId) {
        this.seekingId = seekingId;
    }

    public String getSeekingType() {
        return seekingType;
    }

    public void setSeekingType(String seekingType) {
        this.seekingType = seekingType;
    }

    public String getSeekingTypeName() {
        return seekingTypeName;
    }

    public void setSeekingTypeName(String seekingTypeName) {
        this.seekingTypeName = seekingTypeName;
    }

    public String getTenancy() {
        return tenancy;
    }

    public void setTenancy(String tenancy) {
        this.tenancy = tenancy;
    }

    public String getTenancyName() {
        return tenancyName;
    }

    public void setTenancyName(String tenancyName) {
        this.tenancyName = tenancyName;
    }

    public long getToiletCount() {
        return toiletCount;
    }

    public void setToiletCount(long toiletCount) {
        this.toiletCount = toiletCount;
    }

    public String getToiletCountName() {
        return toiletCountName;
    }

    public void setToiletCountName(String toiletCountName) {
        this.toiletCountName = toiletCountName;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public int getViewCount() {
        return viewCount;
    }

    public void setViewCount(int viewCount) {
        this.viewCount = viewCount;
    }

    public String getWechatNumber() {
        return wechatNumber;
    }

    public void setWechatNumber(String wechatNumber) {
        this.wechatNumber = wechatNumber;
    }

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }

    public List<HouseRentDetailListBean> getHouseRentDetailList() {
        return houseRentDetailList;
    }

    public void setHouseRentDetailList(List<HouseRentDetailListBean> houseRentDetailList) {
        this.houseRentDetailList = houseRentDetailList;
    }

    public static Creator<RentSeekingDetail> getCREATOR() {
        return CREATOR;
    }

    public static class HouseRentDetailListBean implements Parcelable {
        /**
         * baseDictId :
         * baseDictName :
         * category :
         * detailId : 0
         * houseId : 0
         * icon :
         * isAvailable : 0
         */

        private String baseDictId;
        private String baseDictName;
        private String category;
        private long detailId;
        private long houseId;
        private String icon;
        private int isAvailable;

        protected HouseRentDetailListBean(Parcel in) {
            baseDictId = in.readString();
            baseDictName = in.readString();
            category = in.readString();
            detailId = in.readLong();
            houseId = in.readLong();
            icon = in.readString();
            isAvailable = in.readInt();
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(baseDictId);
            dest.writeString(baseDictName);
            dest.writeString(category);
            dest.writeLong(detailId);
            dest.writeLong(houseId);
            dest.writeString(icon);
            dest.writeInt(isAvailable);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public static final Creator<HouseRentDetailListBean> CREATOR = new Creator<HouseRentDetailListBean>() {
            @Override
            public HouseRentDetailListBean createFromParcel(Parcel in) {
                return new HouseRentDetailListBean(in);
            }

            @Override
            public HouseRentDetailListBean[] newArray(int size) {
                return new HouseRentDetailListBean[size];
            }
        };

        public String getBaseDictId() {
            return baseDictId;
        }

        public void setBaseDictId(String baseDictId) {
            this.baseDictId = baseDictId;
        }

        public String getBaseDictName() {
            return baseDictName;
        }

        public void setBaseDictName(String baseDictName) {
            this.baseDictName = baseDictName;
        }

        public String getCategory() {
            return category;
        }

        public void setCategory(String category) {
            this.category = category;
        }

        public long getDetailId() {
            return detailId;
        }

        public void setDetailId(long detailId) {
            this.detailId = detailId;
        }

        public long getHouseId() {
            return houseId;
        }

        public void setHouseId(long houseId) {
            this.houseId = houseId;
        }

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }

        public int getIsAvailable() {
            return isAvailable;
        }

        public void setIsAvailable(int isAvailable) {
            this.isAvailable = isAvailable;
        }
    }
}
